﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;

namespace Nathan_tools
{
    public partial class frm_web : Form
    {
        public frm_web()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            WebClient wc = new WebClient();
            Stream data = wc.OpenRead(textBox1.Text );
            StreamReader reader = new StreamReader(data);
            textBox2.Text  = reader.ReadToEnd();
            data.Close();
            reader.Close();

        }

        private void frm_web_Load(object sender, EventArgs e)
        {

        }
    }
}
